/*****************************************************************************
 Copyright (c) 2009-2021, Intel Corporation

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
     * Redistributions in binary form must reproduce the above copyright
       notice, this list of conditions and the following disclaimer in the
       documentation and/or other materials provided with the distribution.
     * Neither the name of Intel Corporation nor the names of its contributors
       may be used to endorse or promote products derived from this software
       without specific prior written permission.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/

#ifndef __ZUC_TEST_VECTORS_H__
#define __ZUC_TEST_VECTORS_H__

#define MAX_BUFFER_LENGTH_IN_BITS 5670 /* biggest test is EIA test 5 */
#define MAX_BUFFER_LENGTH_IN_BYTES ((MAX_BUFFER_LENGTH_IN_BITS) + 7)/8
#define NUM_ZUC_ALG_TESTS 3
#define NUM_ZUC_EEA3_TESTS 5
#define NUM_ZUC_256_EEA3_TESTS 5
#define NUM_ZUC_256_EIA3_TESTS 4
#define NUM_ZUC_EIA3_TESTS 10
#define ZUC_KEY_LEN_IN_BYTES 16
#define ZUC_IV_LEN_IN_BYTES 16
#define ZUC256_KEY_LEN_IN_BYTES 32
#define ZUC256_IV_LEN_IN_BYTES 25
#define ZUC_DIGEST_LEN 4

typedef struct testZUC_vectors_t {
	uint8_t CK[16];
	uint8_t IV[16];
	uint32_t Z[2];

} testZUC_vectors_t;
typedef struct test128EEA3_vectors_t {
	uint8_t CK[16];
	uint32_t count;
	uint8_t Bearer;
	uint8_t Direction;
	uint32_t length_in_bits;
	uint8_t plaintext[MAX_BUFFER_LENGTH_IN_BYTES];
	uint8_t ciphertext[MAX_BUFFER_LENGTH_IN_BYTES];
} test128EEA_vectors_t;

typedef struct test256EEA3_vectors_t {
	uint8_t CK[32];
	uint8_t IV[25];
	uint32_t length_in_bits;
	uint8_t plaintext[MAX_BUFFER_LENGTH_IN_BYTES];
	uint8_t ciphertext[MAX_BUFFER_LENGTH_IN_BYTES];
} test256EEA_vectors_t;

typedef struct test128EIA3_vectors_t {
	uint8_t CK[16];
	uint32_t count;
	uint8_t Bearer;
	uint8_t Direction;
	uint32_t length_in_bits;
	uint8_t message[MAX_BUFFER_LENGTH_IN_BYTES];
	uint8_t mac[4];
} test128EIA_vectors_t;

typedef struct test256EIA3_vectors_t {
	uint8_t CK[32];
	uint8_t IV[25];
	uint32_t length_in_bits;
	uint8_t message[MAX_BUFFER_LENGTH_IN_BYTES];
	uint8_t mac4[4];
	uint8_t mac8[8];
	uint8_t mac16[16];
} test256EIA_vectors_t;

/*
 * ZUC algorithm tests from 3GPP Document3: Implementator's Test Data.
 * Version 1.1 (4th Jan. 2011).
 */
const struct testZUC_vectors_t testZUC_vectors[] = {
	{
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
		{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
		{0x27BEDE74, 0x018082DA}
	},
	{
		{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
		 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
		{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
		 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF},
		{0x0657CFA0, 0x7096398B}
	},
	{
		{0x3D, 0x4C, 0x4B, 0xE9, 0x6A, 0x82, 0xFD, 0xAE,
		 0xB5, 0x8F, 0x64, 0x1D, 0xB1, 0x7B, 0x45, 0x5B},
		{0x84, 0x31, 0x9A, 0xA8, 0xDE, 0x69, 0x15, 0xCA,
		 0x1F, 0x6B, 0xDA, 0x6B, 0xFB, 0xD8, 0xC7, 0x66},
		{0x14F1C272, 0x3279C419}
	},
	{
		{0x4D, 0x32, 0x0B, 0xFA, 0xD4, 0xC2, 0x85, 0xBF,
		 0xD6, 0xB8, 0xBD, 0x00, 0xF3, 0x9D, 0x8B, 0x41},
		{0x52, 0x95, 0x9D, 0xAB, 0xA0, 0xBF, 0x17, 0x6E,
		 0xCE, 0x2D, 0xC3, 0x15, 0x04, 0x9E, 0xB5, 0x74},
		{0xED4400E7, 0x0633E5C5}
	},
};
const struct test128EEA3_vectors_t testEEA3_vectors[] = {
	/* TestSet1*/
	{
		{0x17, 0x3D, 0x14, 0xBA, 0x50, 0x03, 0x73, 0x1D,
		 0x7A, 0x60, 0x04, 0x94, 0x70, 0xF0, 0x0A, 0x29},
		0x66035492,
		0x0F,
		0x0,
		193,
	/* plaintext*/
		{0x6C, 0xF6, 0x53, 0x40, 0x73, 0x55, 0x52, 0xAB,
		 0x0C, 0x97, 0x52, 0xFA, 0x6F, 0x90, 0x25, 0xFE,
		 0x0B, 0xD6, 0x75, 0xD9, 0x00, 0x58, 0x75, 0xB2,
		 0x00, 0x00, 0x00, 0x00},
	/*ciphertext*/
		{0xA6, 0xC8, 0x5F, 0xC6, 0x6A, 0xFB, 0x85, 0x33,
		 0xAA, 0xFC, 0x25, 0x18, 0xDF, 0xE7, 0x84, 0x94,
		 0x0E, 0xE1, 0xE4, 0xB0, 0x30, 0x23, 0x8C, 0xC8,
		 0x00, 0x00, 0x00, 0x00}
	},
	/*TestSet2*/
	{
		{0xE5, 0xBD, 0x3E, 0xA0, 0xEB, 0x55, 0xAD, 0xE8,
		 0x66, 0xC6, 0xAC, 0x58, 0xBD, 0x54, 0x30, 0x2A},
		0x56823,
		0x18,
		0x1,
		800,
	/*plaintext*/
		{0x14, 0xA8, 0xEF, 0x69, 0x3D, 0x67, 0x85, 0x07,
		 0xBB, 0xE7, 0x27, 0x0A, 0x7F, 0x67, 0xFF, 0x50,
		 0x06, 0xC3, 0x52, 0x5B, 0x98, 0x07, 0xE4, 0x67,
		 0xC4, 0xE5, 0x60, 0x00, 0xBA, 0x33, 0x8F, 0x5D,
		 0x42, 0x95, 0x59, 0x03, 0x67, 0x51, 0x82, 0x22,
		 0x46, 0xC8, 0x0D, 0x3B, 0x38, 0xF0, 0x7F, 0x4B,
		 0xE2, 0xD8, 0xFF, 0x58, 0x05, 0xF5, 0x13, 0x22,
		 0x29, 0xBD, 0xE9, 0x3B, 0xBB, 0xDC, 0xAF, 0x38,
		 0x2B, 0xF1, 0xEE, 0x97, 0x2F, 0xBF, 0x99, 0x77,
		 0xBA, 0xDA, 0x89, 0x45, 0x84, 0x7A, 0x2A, 0x6C,
		 0x9A, 0xD3, 0x4A, 0x66, 0x75, 0x54, 0xE0, 0x4D,
		 0x1F, 0x7F, 0xA2, 0xC3, 0x32, 0x41, 0xBD, 0x8F,
		 0x01, 0xBA, 0x22, 0x0D},
	/*ciphertext*/
		{0x13, 0x1D, 0x43, 0xE0, 0xDE, 0xA1, 0xBE, 0x5C,
		 0x5A, 0x1B, 0xFD, 0x97, 0x1D, 0x85, 0x2C, 0xBF,
		 0x71, 0x2D, 0x7B, 0x4F, 0x57, 0x96, 0x1F, 0xEA,
		 0x32, 0x08, 0xAF, 0xA8, 0xBC, 0xA4, 0x33, 0xF4,
		 0x56, 0xAD, 0x09, 0xC7, 0x41, 0x7E, 0x58, 0xBC,
		 0x69, 0xCF, 0x88, 0x66, 0xD1, 0x35, 0x3F, 0x74,
		 0x86, 0x5E, 0x80, 0x78, 0x1D, 0x20, 0x2D, 0xFB,
		 0x3E, 0xCF, 0xF7, 0xFC, 0xBC, 0x3B, 0x19, 0x0F,
		 0xE8, 0x2A, 0x20, 0x4E, 0xD0, 0xE3, 0x50, 0xFC,
		 0x0F, 0x6F, 0x26, 0x13, 0xB2, 0xF2, 0xBC, 0xA6,
		 0xDF, 0x5A, 0x47, 0x3A, 0x57, 0xA4, 0xA0, 0x0D,
		 0x98, 0x5E, 0xBA, 0xD8, 0x80, 0xD6, 0xF2, 0x38,
		 0x64, 0xA0, 0x7B, 0x01}
	},
	/*TestSet3*/
	{
		{0xD4, 0x55, 0x2A, 0x8F, 0xD6, 0xE6, 0x1C, 0xC8,
		 0x1A, 0x20, 0x09, 0x14, 0x1A, 0x29, 0xC1, 0x0B},
		0x76452EC1,
		0x2,
		0x1,
		1570,
		/* plaintext*/
		{0x38, 0xF0, 0x7F, 0x4B, 0xE2, 0xD8, 0xFF, 0x58,
		 0x05, 0xF5, 0x13, 0x22, 0x29, 0xBD, 0xE9, 0x3B,
		 0xBB, 0xDC, 0xAF, 0x38, 0x2B, 0xF1, 0xEE, 0x97,
		 0x2F, 0xBF, 0x99, 0x77, 0xBA, 0xDA, 0x89, 0x45,
		 0x84, 0x7A, 0x2A, 0x6C, 0x9A, 0xD3, 0x4A, 0x66,
		 0x75, 0x54, 0xE0, 0x4D, 0x1F, 0x7F, 0xA2, 0xC3,
		 0x32, 0x41, 0xBD, 0x8F, 0x01, 0xBA, 0x22, 0x0D,
		 0x3C, 0xA4, 0xEC, 0x41, 0xE0, 0x74, 0x59, 0x5F,
		 0x54, 0xAE, 0x2B, 0x45, 0x4F, 0xD9, 0x71, 0x43,
		 0x20, 0x43, 0x60, 0x19, 0x65, 0x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E1, 0xF7, 0x59, 0xF3, 0xAE, 0xE4, 0x46, 0x14,
	 0x72, 0x5A, 0xA3, 0xC7, 0x48, 0x2B, 0x30, 0x84,
	 0x4C, 0x14, 0x3F, 0xF8, 0x5B, 0x53, 0xF1, 0xE5,
	 0x83, 0xC5, 0x01, 0x25, 0x7D, 0xDD, 0xD0, 0x96,
	 0xB8, 0x12, 0x68, 0xDA, 0xA3, 0x03, 0xF1, 0x72,
	 0x34, 0xC2, 0x33, 0x35, 0x41, 0xF0, 0xBB, 0x8E,
	 0x19, 0x06, 0x48, 0xC5, 0x80, 0x7C, 0x86, 0x6D,
	 0x71, 0x93, 0x22, 0x86, 0x09, 0xAD, 0xB9, 0x48,
	 0x68, 0x6F, 0x7D, 0xE2, 0x94, 0xA8, 0x02, 0xCC,
	 0x38, 0xF7, 0xFE, 0x52, 0x08, 0xF5, 0xEA, 0x31,
	 0x96, 0xD0, 0x16, 0x7B, 0x9B, 0xDD, 0x02, 0xF0,
	 0xD2, 0xA5, 0x22, 0x1C, 0xA5, 0x08, 0xF8, 0x93,
	 0xAF, 0x5C, 0x4B, 0x4B, 0xB9, 0xF4, 0xF5, 0x20,
	 0xFD, 0x84, 0x28, 0x9B, 0x3D, 0xBE, 0x7E, 0x61,
	 0x49, 0x7A, 0x7E, 0x2A, 0x58, 0x40, 0x37, 0xEA,
	 0x63, 0x7B, 0x69, 0x81, 0x12, 0x71, 0x74, 0xAF,
	 0x57, 0xB4, 0x71, 0xDF, 0x4B, 0x27, 0x68, 0xFD,
	 0x79, 0xC1, 0x54, 0x0F, 0xB3, 0xED, 0xF2, 0xEA,
	 0x22, 0xCB, 0x69, 0xBE, 0xC0, 0xCF, 0x8D, 0x93,
	 0x3D, 0x9C, 0x6F, 0xDD, 0x64, 0x5E, 0x85, 0x05,
	 0x91, 0xCC, 0xA3, 0xD6, 0x2C, 0x0C, 0xC0, 0x00}
	},
};
/* ZUC-256 */
const struct test256EEA3_vectors_t test256EEA3_vectors[] = {
	/* TestSet 1 */
	{
                /* Key */
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                },
                /* IV */
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00
                },
                /* Message length */
                640,
                /* Plaintext */
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                },
                /* Ciphertext */
                {0x58, 0xD0, 0x3A, 0xD6, 0x2E, 0x03, 0x2C, 0xE2,
                 0xDA, 0xFC, 0x68, 0x3A, 0x39, 0xBD, 0xCB, 0x03,
                 0x52, 0xA2, 0xBC, 0x67, 0xF1, 0xB7, 0xDE, 0x74,
                 0x16, 0x3C, 0xE3, 0xA1, 0x01, 0xEF, 0x55, 0x58,
                 0x96, 0x39, 0xD7, 0x5B, 0x95, 0xFA, 0x68, 0x1B,
                 0x7F, 0x09, 0x0D, 0xF7, 0x56, 0x39, 0x1C, 0xCC,
                 0x90, 0x3B, 0x76, 0x12, 0x74, 0x4D, 0x54, 0x4C,
                 0x17, 0xBC, 0x3F, 0xAD, 0x8B, 0x16, 0x3B, 0x08,
                 0x21, 0x78, 0x7C, 0x0B, 0x97, 0x77, 0x5B, 0xB8,
                 0x49, 0x43, 0xC6, 0xBB, 0xE8, 0xAD, 0x8A, 0xFD
                }
        },
        /* TestSet 2 */
        {
                /* Key */
                {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
                 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
                 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
                 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF
                },
                /* IV */
                {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
                 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
                 0xFF, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F,
                 0x3F
                },
                /* Message length */
                640,
                /* Plaintext*/
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                },
                /* Ciphertext */
                {0x33, 0x56, 0xcb, 0xae, 0xd1, 0xa1, 0xc1, 0x8b,
                 0x6b, 0xaa, 0x4f, 0xfe, 0x34, 0x3f, 0x77, 0x7c,
                 0x9e, 0x15, 0x12, 0x8f, 0x25, 0x1a, 0xb6, 0x5b,
                 0x94, 0x9f, 0x7b, 0x26, 0xef, 0x71, 0x57, 0xf2,
                 0x96, 0xdd, 0x2f, 0xa9, 0xdf, 0x95, 0xe3, 0xee,
                 0x7a, 0x5b, 0xe0, 0x2e, 0xc3, 0x2b, 0xa5, 0x85,
                 0x50, 0x5a, 0xf3, 0x16, 0xc2, 0xf9, 0xde, 0xd2,
                 0x7c, 0xdb, 0xd9, 0x35, 0xe4, 0x41, 0xce, 0x11,
                 0x15, 0xfd, 0x0a, 0x80, 0xbb, 0x7a, 0xef, 0x67,
                 0x68, 0x98, 0x94, 0x16, 0xb8, 0xfa, 0xc8, 0xc2
                }
        },
        /* TestSet 3 */
        {
                /* Key */
                {0x67, 0xc6, 0x69, 0x73, 0x51, 0xff, 0x4a, 0xec,
                 0x29, 0xcd, 0xba, 0xab, 0xf2, 0xfb, 0xe3, 0x46,
                 0x7c, 0xc2, 0x54, 0xf8, 0x1b, 0xe8, 0xe7, 0x8d,
                 0x76, 0x5a, 0x2e, 0x63, 0x33, 0x9f, 0xc9, 0x9a
                },
                /* IV */
                {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
                 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
                 0xFF, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F,
                 0x3F
                },
                /* Message length */
                640,
                /* Plaintext*/
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                },
                /* Ciphertext */
                {0xB7, 0xA0, 0x40, 0x5E, 0xD0, 0xE5, 0xE4, 0x47,
                 0xBA, 0x13, 0xF2, 0xB5, 0xA9, 0xED, 0x8A, 0x25,
                 0xE4, 0x3E, 0x8E, 0x62, 0xD7, 0xB3, 0xE6, 0x46,
                 0xC5, 0x71, 0xA1, 0xC6, 0xCD, 0x76, 0xEA, 0x59,
                 0x3A, 0x49, 0x3D, 0xE2, 0xF9, 0x52, 0x91, 0x00,
                 0xAF, 0x20, 0x69, 0x60, 0xCC, 0xE8, 0x4B, 0x38,
                 0x0B, 0xB8, 0x42, 0xCD, 0x1B, 0x12, 0xAC, 0xD9,
                 0x89, 0x50, 0x87, 0x46, 0x85, 0xD1, 0x57, 0x66,
                 0xFA, 0x65, 0x85, 0x98, 0xFF, 0xB7, 0x89, 0x3F,
                 0x34, 0xFF, 0x9F, 0xF1, 0x3D, 0x80, 0xE8, 0x54
                }
        },
        /* TestSet 4 */
        {
                /* Key */
                {0xC2, 0x54, 0xF8, 0x1B, 0xE8, 0xE7, 0x8D, 0x76,
                 0x5A, 0x2E, 0x63, 0x33, 0x9F, 0xC9, 0x9A, 0x66,
                 0x32, 0x0D, 0xB7, 0x31, 0x58, 0xA3, 0x5A, 0x25,
                 0x5D, 0x05, 0x17, 0x58, 0xE9, 0x5E, 0xD4, 0xAB
                },
                /* IV */
                {0x67, 0xC6, 0x69, 0x73, 0x51, 0xFF, 0x4A, 0xEC,
                 0x29, 0xCD, 0xBA, 0xAB, 0xF2, 0xFB, 0xE3, 0x46,
                 0x7C, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F,
                 0x3F
                },
                /* Message length */
                640,
                /* Plaintext*/
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                },
                /* Ciphertext */
                {0x8D, 0x59, 0x00, 0x3C, 0xB9, 0x8F, 0xE2, 0x79,
                 0xC7, 0xE8, 0x85, 0x35, 0xEF, 0xE5, 0xB5, 0x51,
                 0xDE, 0xA5, 0xEC, 0xB1, 0xCA, 0xDC, 0x55, 0x5A,
                 0x3C, 0xD3, 0xA9, 0xB4, 0x32, 0x22, 0x34, 0xD9,
                 0x42, 0xE2, 0x99, 0x4A, 0x9B, 0x87, 0xFD, 0x46,
                 0x73, 0x54, 0xDC, 0x68, 0xEA, 0xE8, 0xD4, 0xBA,
                 0xDC, 0x1C, 0xB7, 0x44, 0x13, 0xA0, 0xA0, 0xA2,
                 0x18, 0x86, 0x3F, 0x35, 0x92, 0xD1, 0x1C, 0x8C,
                 0xAE, 0xFF, 0xA3, 0x1B, 0x4E, 0xE8, 0x6F, 0xC6,
                 0x49, 0x37, 0xF9, 0x8A, 0xC6, 0x90, 0x7C, 0x36
                }
        },
        /* TestSet 5 */
        {
                /* Key */
                {0x8D, 0x76, 0x5A, 0x2E, 0x63, 0x33, 0x9F, 0xC9,
                 0x9A, 0x66, 0x32, 0x0D, 0xB7, 0x31, 0x58, 0xA3,
                 0x5A, 0x25, 0x5D, 0x05, 0x17, 0x58, 0xE9, 0x5E,
                 0xD4, 0xAB, 0xB2, 0xCD, 0xC6, 0x9B, 0xB4, 0x54
                },
                /* IV */
                {0x67, 0xC6, 0x69, 0x73, 0x51, 0xFF, 0x4A, 0xEC,
                 0x29, 0xCD, 0xBA, 0xAB, 0xF2, 0xFB, 0xE3, 0x46,
                 0x7C, 0x30, 0x25, 0x13, 0x38, 0x06, 0x3E, 0x23,
                 0x27
                },
                /* Message length */
                640,
                /* Plaintext*/
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                },
                /* Ciphertext */
                {0xD8, 0x2E, 0x40, 0x78, 0x2C, 0x03, 0xA7, 0x1A,
                 0x90, 0xA5, 0x05, 0xC5, 0x8E, 0x61, 0x26, 0x8B,
                 0xE2, 0x5F, 0x61, 0xF6, 0x1F, 0xD4, 0x6D, 0x04,
                 0x0D, 0x9E, 0x48, 0x78, 0x38, 0xF3, 0x2F, 0x97,
                 0x46, 0x00, 0x4E, 0xAC, 0xCC, 0x93, 0x09, 0x43,
                 0x92, 0x1A, 0x17, 0x42, 0x38, 0xF8, 0x8C, 0x9B,
                 0x7E, 0x90, 0xC2, 0x9F, 0x4A, 0x16, 0x0C, 0x2A,
                 0x43, 0x3B, 0xBB, 0xD9, 0x50, 0xEE, 0x85, 0xD9,
                 0x7D, 0x1E, 0x3A, 0xB5, 0x57, 0xFB, 0x56, 0xD8,
                 0xB4, 0x34, 0x5C, 0x5C, 0x0B, 0x48, 0x67, 0x37
                }
        }
};

const struct test128EIA3_vectors_t testEIA3_vectors[] = {
	{
	/*Test 1*/
		{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
		0x00000000,
		0x0,
		0x0,
		1,
		{0x00, 0x00, 0x00, 0x00},
		{0xC8, 0xA9, 0x59, 0x5E}
	},
	{
	/*Test 2*/
		{0x47, 0x05, 0x41, 0x25, 0x56, 0x1e, 0xb2, 0xdd,
		 0xa9, 0x40, 0x59, 0xda, 0x05, 0x09, 0x78, 0x50},
		0x561EB2DD,
		0x14,
		0,
		90,
		{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		 0x00, 0x00, 0x00, 0x00},
		{0x67, 0x19, 0xA0, 0x88}
	},
	/*Test 3*/
	{
		{0xC9, 0xE6, 0xCE, 0xC4, 0x60, 0x7C, 0x72, 0xDB,
		 0x00, 0x0A, 0xEF, 0xA8, 0x83, 0x85, 0xAB, 0x0A},
		0xA94059DA,
		0xA,
		0x1,
		577,
		{0x98, 0x3B, 0x41, 0xD4, 0x7D, 0x78, 0x0C, 0x9E,
		 0x1A, 0xD1, 0x1D, 0x7E, 0xB7, 0x03, 0x91, 0xB1,
		 0xDE, 0x0B, 0x35, 0xDA, 0x2D, 0xC6, 0x2F, 0x83,
		 0xE7, 0xB7, 0x8D, 0x63, 0x06, 0xCA, 0x0E, 0xA0,
		 0x7E, 0x94, 0x1B, 0x7B, 0xE9, 0x13, 0x48, 0xF9,
		 0xFC, 0xB1, 0x70, 0xE2, 0x21, 0x7F, 0xEC, 0xD9,
		 0x7F, 0x9F, 0x68, 0xAD, 0xB1, 0x6E, 0x5D, 0x7D,
		 0x21, 0xE5, 0x69, 0xD2, 0x80, 0xED, 0x77, 0x5C,
		 0xEB, 0xDE, 0x3F, 0x40, 0x93, 0xC5, 0x38, 0x81,
		 0x00, 0x00, 0x00, 0x00},
		{0xFA, 0xE8, 0xFF, 0x0B}
	},
	/*Test 4*/
	{
		{0xc8, 0xa4, 0x82, 0x62, 0xd0, 0xc2, 0xe2, 0xba,
		 0xc4, 0xb9, 0x6e, 0xf7, 0x7e, 0x80, 0xca, 0x59},
		0x5097850,
		0x10,
		0x1,
		2079,
		{0xb5, 0x46, 0x43, 0x0b, 0xf8, 0x7b, 0x4f, 0x1e,
		 0xe8, 0x34, 0x70, 0x4c, 0xd6, 0x95, 0x1c, 0x36,
		 0xe2, 0x6f, 0x10, 0x8c, 0xf7, 0x31, 0x78, 0x8f,
		 0x48, 0xdc, 0x34, 0xf1, 0x67, 0x8c, 0x05, 0x22,
		 0x1c, 0x8f, 0xa7, 0xff, 0x2f, 0x39, 0xf4, 0x77,
		 0xe7, 0xe4, 0x9e, 0xf6, 0x0a, 0x4e, 0xc2, 0xc3,
		 0xde, 0x24, 0x31, 0x2a, 0x96, 0xaa, 0x26, 0xe1,
		 0xcf, 0xba, 0x57, 0x56, 0x38, 0x38, 0xb2, 0x97,
		 0xf4, 0x7e, 0x85, 0x10, 0xc7, 0x79, 0xfd, 0x66,
		 0x54, 0xb1, 0x43, 0x38, 0x6f, 0xa6, 0x39, 0xd3,
		 0x1e, 0xdb, 0xd6, 0xc0, 0x6e, 0x47, 0xd1, 0x59,
		 0xd9, 0x43, 0x62, 0xf2, 0x6a, 0xee, 0xed, 0xee,
		 0x0e, 0x4f, 0x49, 0xd9, 0xbf, 0x84, 0x12, 0x99,
		 0x54, 0x15, 0xbf, 0xad, 0x56, 0xee, 0x82, 0xd1,
		 0xca, 0x74, 0x63, 0xab, 0xf0, 0x85, 0xb0, 0x82,
		 0xb0, 0x99, 0x04, 0xd6, 0xd9, 0x90, 0xd4, 0x3c,
		 0xf2, 0xe0, 0x62, 0xf4, 0x08, 0x39, 0xd9, 0x32,
		 0x48, 0xb1, 0xeb, 0x92, 0xcd, 0xfe, 0xd5, 0x30,
		 0x0b, 0xc1, 0x48, 0x28, 0x04, 0x30, 0xb6, 0xd0,
		 0xca, 0xa0, 0x94, 0xb6, 0xec, 0x89, 0x11, 0xab,
		 0x7d, 0xc3, 0x68, 0x24, 0xb8, 0x24, 0xdc, 0x0a,
		 0xf6, 0x68, 0x2b, 0x09, 0x35, 0xfd, 0xe7, 0xb4,
		 0x92, 0xa1, 0x4d, 0xc2, 0xf4, 0x36, 0x48, 0x03,
		 0x8d, 0xa2, 0xcf, 0x79, 0x17, 0x0d, 0x2d, 0x50,
		 0x13, 0x3f, 0xd4, 0x94, 0x16, 0xcb, 0x6e, 0x33,
		 0xbe, 0xa9, 0x0b, 0x8b, 0xf4, 0x55, 0x9b, 0x03,
		 0x73, 0x2a, 0x01, 0xea, 0x29, 0x0e, 0x6d, 0x07,
		 0x4f, 0x79, 0xbb, 0x83, 0xc1, 0x0e, 0x58, 0x00,
		 0x15, 0xcc, 0x1a, 0x85, 0xb3, 0x6b, 0x55, 0x01,
		 0x04, 0x6e, 0x9c, 0x4b, 0xdc, 0xae, 0x51, 0x35,
		 0x69, 0x0b, 0x86, 0x66, 0xbd, 0x54, 0xb7, 0xa7,
		 0x03, 0xea, 0x7b, 0x6f, 0x22, 0x0a, 0x54, 0x69,
		 0xa5, 0x68, 0x02, 0x7e},
		{0x00, 0x4A, 0xC4, 0xD6}
	},
	/*Test 5*/
	{
		{0x6B, 0x8B, 0x08, 0xEE, 0x79, 0xE0, 0xB5, 0x98,
		 0x2D, 0x6D, 0x12, 0x8E, 0xA9, 0xF2, 0x20, 0xCB},
		0x561EB2DD,
		0x1C,
		0x0,
		5670,
		{0x5B, 0xAD, 0x72, 0x47, 0x10, 0xBA, 0x1C, 0x56,
		 0xD5, 0xA3, 0x15, 0xF8, 0xD4, 0x0F, 0x6E, 0x09,
		 0x37, 0x80, 0xBE, 0x8E, 0x8D, 0xE0, 0x7B, 0x69,
		 0x92, 0x43, 0x20, 0x18, 0xE0, 0x8E, 0xD9, 0x6A,
		 0x57, 0x34, 0xAF, 0x8B, 0xAD, 0x8A, 0x57, 0x5D,
		 0x3A, 0x1F, 0x16, 0x2F, 0x85, 0x04, 0x5C, 0xC7,
		 0x70, 0x92, 0x55, 0x71, 0xD9, 0xF5, 0xB9, 0x4E,
		 0x45, 0x4A, 0x77, 0xC1, 0x6E, 0x72, 0x93, 0x6B,
		 0xF0, 0x16, 0xAE, 0x15, 0x74, 0x99, 0xF0, 0x54,
		 0x3B, 0x5D, 0x52, 0xCA, 0xA6, 0xDB, 0xEA, 0xB6,
		 0x97, 0xD2, 0xBB, 0x73, 0xE4, 0x1B, 0x80, 0x75,
		 0xDC, 0xE7, 0x9B, 0x4B, 0x86, 0x04, 0x4F, 0x66,
		 0x1D, 0x44, 0x85, 0xA5, 0x43, 0xDD, 0x78, 0x60,
		 0x6E, 0x04, 0x19, 0xE8, 0x05, 0x98, 0x59, 0xD3,
		 0xCB, 0x2B, 0x67, 0xCE, 0x09, 0x77, 0x60, 0x3F,
		 0x81, 0xFF, 0x83, 0x9E, 0x33, 0x18, 0x59, 0x54,
		 0x4C, 0xFB, 0xC8, 0xD0, 0x0F, 0xEF, 0x1A, 0x4C,
		 0x85, 0x10, 0xFB, 0x54, 0x7D, 0x6B, 0x06, 0xC6,
		 0x11, 0xEF, 0x44, 0xF1, 0xBC, 0xE1, 0x07, 0xCF,
		 0xA4, 0x5A, 0x06, 0xAA, 0xB3, 0x60, 0x15, 0x2B,
		 0x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, 0xF2, 0x71, 0xF6,
		 0xCC, 0x6D, 0xBB, 0x8D, 0xC7, 0xEC, 0x36, 0xE3,
		 0x6B, 0xE1, 0xED, 0x30, 0x81, 0x64, 0xC3, 0x1C,
		 0x7C, 0x0A, 0xFC, 0x54, 0x1C},
		{0x0C, 0xA1, 0x27, 0x92}
	},
        /*Custom test 1*/
        {
		{0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
		 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F},
		0x01234567,
		0xA,
		0x0,
		63,
		{0x5B, 0xAD, 0x72, 0x47, 0x10, 0xBA, 0x1C, 0x56},
		{0x84, 0x9A, 0xCA, 0xDB}
	},
        /*Custom test 2*/
	{
		{0xC9, 0xE6, 0xCE, 0xC4, 0x60, 0x7C, 0x72, 0xDB,
		 0x00, 0x0A, 0xEF, 0xA8, 0x83, 0x85, 0xAB, 0x0A},
		0xA94059DA,
		0xA,
		0x1,
		62,
		{0x98, 0x3B, 0x41, 0xD4, 0x7D, 0x78, 0x0C, 0x9E,
		 0x1A, 0xD1, 0x1D, 0x7E, 0xB7, 0x03, 0x91, 0xB1},
		{0x81, 0x17, 0x55, 0x81}
	},
        /*Custom test 3*/
	{
		{0xC9, 0xE6, 0xCE, 0xC4, 0x60, 0x7C, 0x72, 0xDB,
		 0x00, 0x0A, 0xEF, 0xA8, 0x83, 0x85, 0xAB, 0x0A},
		0xA94059DA,
		0xA,
		0x0,
		512,
		{0x98, 0x3B, 0x41, 0xD4, 0x7D, 0x78, 0x0C, 0x9E,
		 0x1A, 0xD1, 0x1D, 0x7E, 0xB7, 0x03, 0x91, 0xB1,
                 0xDE, 0x0B, 0x35, 0xDA, 0x2D, 0xC6, 0x2F, 0x83,
		 0xE7, 0xB7, 0x8D, 0x63, 0x06, 0xCA, 0x0E, 0xA0,
		 0x7E, 0x94, 0x1B, 0x7B, 0xE9, 0x13, 0x48, 0xF9,
		 0xFC, 0xB1, 0x70, 0xE2, 0x21, 0x7F, 0xEC, 0xD9,
		 0x7F, 0x9F, 0x68, 0xAD, 0xB1, 0x6E, 0x5D, 0x7D,
		 0x21, 0xE5, 0x69, 0xD2, 0x80, 0xED, 0x77, 0x5C},
		{0xBB, 0xAF, 0x2F, 0xC3}
	},
        /*Custom test 4*/
        {
		{0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
		 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F},
		0x01234567,
		0xA,
		0x0,
		64,
		{0x5B, 0xAD, 0x72, 0x47, 0x10, 0xBA, 0x1C, 0x56},
		{0x1B, 0x3D, 0x0f, 0x74}
	},
        /*Custom test 5*/
	{
		{0xC9, 0xE6, 0xCE, 0xC4, 0x60, 0x7C, 0x72, 0xDB,
		 0x00, 0x0A, 0xEF, 0xA8, 0x83, 0x85, 0xAB, 0x0A},
		0xA94059DA,
		0xA,
		0x1,
		480,
		{0x98, 0x3B, 0x41, 0xD4, 0x7D, 0x78, 0x0C, 0x9E,
		 0x1A, 0xD1, 0x1D, 0x7E, 0xB7, 0x03, 0x91, 0xB1,
                 0xDE, 0x0B, 0x35, 0xDA, 0x2D, 0xC6, 0x2F, 0x83,
		 0xE7, 0xB7, 0x8D, 0x63, 0x06, 0xCA, 0x0E, 0xA0,
		 0x7E, 0x94, 0x1B, 0x7B, 0xE9, 0x13, 0x48, 0xF9,
		 0xFC, 0xB1, 0x70, 0xE2, 0x21, 0x7F, 0xEC, 0xD9,
		 0x7F, 0x9F, 0x68, 0xAD, 0xB1, 0x6E, 0x5D, 0x7D,
		 0x21, 0xE5, 0x69, 0xD2, 0x80, 0xED, 0x77, 0x5C},
		{0x39, 0x5C, 0x11, 0x92}
	},
};

const struct test256EIA3_vectors_t test256EIA3_vectors[] = {
        {
        /*Test 1*/
                /* Key */
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                },
                /* IV */
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00
                },
                400,
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00
                },
                {0x9B, 0x97, 0x2A, 0x74},
                {0x67, 0x3e, 0x54, 0x99, 0x00, 0x34, 0xd3, 0x8c},
                {0xd8, 0x5e, 0x54, 0xbb, 0xcb, 0x96, 0x00, 0x96,
                 0x70, 0x84, 0xc9, 0x52, 0xa1, 0x65, 0x4b, 0x26
                },
        },
        {
        /*Test 2*/
                /* Key */
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
                },
                /* IV */
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00
                },
                4000,
                {0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11
                },
                {0x87, 0x54, 0xf5, 0xcf},
                {0x13, 0x0d, 0xc2, 0x25, 0xe7, 0x22, 0x40, 0xcc},
                {0xdf, 0x1e, 0x83, 0x07, 0xb3, 0x1c, 0xc6, 0x2b,
                 0xec, 0xa1, 0xac, 0x6f, 0x81, 0x90, 0xc2, 0x2f
                },
        },
	{
	/*Test 3*/
                /* Key */
                {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
                },
                /* IV */
                {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f,
                 0x3f
                },
                400,
                {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
                 0x00, 0x00
                },
                {0x1f, 0x30, 0x79, 0xb4},
                {0x8c, 0x71, 0x39, 0x4d, 0x39, 0x95, 0x77, 0x25},
                {0xa3, 0x5b, 0xb2, 0x74, 0xb5, 0x67, 0xc4, 0x8b,
                 0x28, 0x31, 0x9f, 0x11, 0x1a, 0xf3, 0x4f, 0xbd
                },
        },
	{
	/*Test 4*/
                /* Key */
                {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
                },
                /* IV */
                {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                 0xff, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f,
                 0x3f
                },
                4000,
                {0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
                 0x11, 0x11, 0x11, 0x11
                },
                {0x5c, 0x7c, 0x8b, 0x88},
                {0xea, 0x1d, 0xee, 0x54, 0x4b, 0xb6, 0x22, 0x3b},
                {0x3a, 0x83, 0xb5, 0x54, 0xbe, 0x40, 0x8c, 0xa5,
                 0x49, 0x41, 0x24, 0xed, 0x9d, 0x47, 0x32, 0x05
                },
        },
};
#endif
